// Package configs
// @Author: zhangdi
// @File: core
// @Version: 1.0.0
// @Date: 2023/4/21 10:15
package dbconf

import "ideatools/application/db/dbservice"

func getDbConf() *dbservice.DbConfigService {
	return dbservice.Conf()
}

func Set(k string, v string) {
	getDbConf().Set(k, v)
}

func SetKTV(k string, v string, confType string) {
	getDbConf().SetKVT(k, v, confType)
}

func Get(k string) string {
	return getDbConf().Get(k)
}

func GetBool(k string) bool {
	return getDbConf().GetBool(k)
}

func GetInt(k string) int {
	return getDbConf().GetNumber(k)
}

func GetDefault(k, defaultValue string) string {
	return getDbConf().GetDefault(k, defaultValue)
}
